package com.lujianfei.business.beans;

import java.awt.Color;
import java.awt.Graphics;

import com.lujianfei.business.base.OnDrawListener;

public class SuperMarket implements OnDrawListener {

	Location location;
	int width;
	int height;
	
	
	public Location getLocation() {
		return location;
	}

	public void setLocation(Location location) {
		this.location = location;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	@Override
	public void update() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void paint(Graphics g) {
		if (null != location) {
			g.setColor(Color.green);
			g.drawRect(location.x, location.y, width, height);
		}
	}

}
